using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using System.IO;
using System.Text;

public partial class Test2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        uploadImage.ValidatingFile += new Telerik.Web.UI.Upload.ValidateFileEventHandler(uploadImage_ValidatingFile);
    }

    void uploadImage_ValidatingFile(object sender, Telerik.Web.UI.Upload.ValidateFileEventArgs e)
    {
        //System.Threading.Thread.Sleep(10000);
    }


    protected void btmSubmit_Click(object sender, EventArgs e)
    {
        StringBuilder tmp = new StringBuilder();
        tmp.AppendFormat("Band Name = {0}<br />", txtBandName.Text);
        if(uploadImage.UploadedFiles.Count == 1)
        {
            tmp.AppendFormat("Band Image = {0}<br />", uploadImage.UploadedFiles[0].FileName);
        }
        tmp.AppendFormat("Band Bio = {0}<br />", txtBio.Text);
        tmp.AppendFormat("Track Title = {0}<br />", txtTrackTitle.Text);
        if(uploadTrack.UploadedFiles.Count == 1)
        {
            tmp.AppendFormat("Track = {0}<br />", uploadTrack.UploadedFiles[0].FileName);
        }
        testRes.InnerHtml = tmp.ToString();
    }


}
